import React from 'react'
import ReactDOM from 'react-dom'

var App = React.createClass({
    render: function () {
        return (
            <div className="divider">
                <h2>{this.props.children}</h2>
                <hr/>
            </div>
        )
    }
})

ReactDOM.render(
    <App>www.baidu.com</App>,
    document.getElementById('app'),
    function(){
        console.log('rendered done')
    }
)